package com.shopowner.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Field implements Serializable {
    private String fno;

    private String stno;

    private String fname;

    private String fimg;

    private String fstate;

    private String fdesc;

    private String faddress;

    private static final long serialVersionUID = 1L;

    public String getFno() {
        return fno;
    }

    public void setFno(String fno) {
        this.fno = fno;
    }

    public String getStno() {
        return stno;
    }

    public void setStno(String stno) {
        this.stno = stno;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFimg() {
        return fimg;
    }

    public void setFimg(String fimg) {
        this.fimg = fimg;
    }

    public String getFstate() {
        return fstate;
    }

    public void setFstate(String fstate) {
        this.fstate = fstate;
    }

    public String getFdesc() {
        return fdesc;
    }

    public void setFdesc(String fdesc) {
        this.fdesc = fdesc;
    }

    public String getFaddress() {
        return faddress;
    }

    public void setFaddress(String faddress) {
        this.faddress = faddress;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Field other = (Field) that;
        return (this.getFno() == null ? other.getFno() == null : this.getFno().equals(other.getFno()))
            && (this.getStno() == null ? other.getStno() == null : this.getStno().equals(other.getStno()))
            && (this.getFname() == null ? other.getFname() == null : this.getFname().equals(other.getFname()))
            && (this.getFimg() == null ? other.getFimg() == null : this.getFimg().equals(other.getFimg()))
            && (this.getFstate() == null ? other.getFstate() == null : this.getFstate().equals(other.getFstate()))
            && (this.getFdesc() == null ? other.getFdesc() == null : this.getFdesc().equals(other.getFdesc()))
            && (this.getFaddress() == null ? other.getFaddress() == null : this.getFaddress().equals(other.getFaddress()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFno() == null) ? 0 : getFno().hashCode());
        result = prime * result + ((getStno() == null) ? 0 : getStno().hashCode());
        result = prime * result + ((getFname() == null) ? 0 : getFname().hashCode());
        result = prime * result + ((getFimg() == null) ? 0 : getFimg().hashCode());
        result = prime * result + ((getFstate() == null) ? 0 : getFstate().hashCode());
        result = prime * result + ((getFdesc() == null) ? 0 : getFdesc().hashCode());
        result = prime * result + ((getFaddress() == null) ? 0 : getFaddress().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fno=").append(fno);
        sb.append(", stno=").append(stno);
        sb.append(", fname=").append(fname);
        sb.append(", fimg=").append(fimg);
        sb.append(", fstate=").append(fstate);
        sb.append(", fdesc=").append(fdesc);
        sb.append(", faddress=").append(faddress);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}